﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Next.aspx.cs" Inherits="Install_Next" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=GetProductName() %>
        安装向导</title>
    <style type="text/css">
body {
	padding:0px;
	margin:0px;
	background:url(images/bgBody.jpg) repeat-x top #DCDDDF;
}
td {
	font-size:12px;
}
.main {
	margin:0px auto;
	width:690px;
	padding:118px 0px 0px 0px;
}
.bg_dt {
	padding:105px 0px 0px 0px;
	background:url(images/bg_tb1.gif) no-repeat top #FFFFFF;
}
.bg_dt2 {
	padding:0px 0px 20px 0px;
	background:url(images/bg_tb2.gif) no-repeat bottom;
}
.f-grayBig {
	color:#333333;
	line-height:24px;
	font-size:14px;
	font-weight:bold;
}
.f-gray44 {
	color:#444444;
	line-height:22px;
}
</style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="main">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="5" valign="top">
                        <img src="images/bg_tb3.gif" /></td>
                    <td valign="top" class="bg_dt">
                        <div class="bg_dt2">
                            <asp:Panel ID="Welcome" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr>
                                        <td class="f-grayBig">
                                            <%= GetProductName()%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <ul class="InstallList">
                                                    <li>Windows 2000 / XP /2003</li>
                                                    <li>Microsoft .NET Framework
                                                        <%=System.Environment.Version.ToString()%>
                                                    </li>
                                                    <li>Internet Information Server 5 / 6 / 7</li>
                                                    <li>SQL Server 2000 / 2005</li>
                                                </ul>
                                            </div>
                                            <div>
                                                <strong>安装前请注意：</strong>
                                                <div>
                                                    <ul>
                                                        <li>系统需要拥有新建文件及修改文件的权限，在运行安装前请配置文件夹的控制权限。</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="License" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr>
                                        <td class="f-grayBig">
                                            <%= GetProductName()%>
                                            许可协议</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <textarea name="textarea" cols="75" rows="8" class="f-gray44">
<%= GetProductName()%> 最终用户许可协议(安装时请阅读)

版权所有© 1998-2008 万户网络. All Rights Reserved.

万户网络技术有限公司(以下简称“本公司”)拥有 <%= GetProductName()%> (以下简称“本软件”)的著作权。

警告：本计算机程序受著作权法与国际公约的保护，未经授权 擅自复制与传播本程序的部分或全部内容可能受到来严厉的民事或刑 事制裁，并将在法律许可的范围内受到最大可能的起诉。 
</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkIAgree" runat="server" Text="我同意此协议" Checked="false" /></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="ConnectToDb" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr>
                                        <td class="f-grayBig">
                                            <%= GetProductName()%>
                                            数据库连接</td>
                                    </tr>
                                    <tr style="height: 46px;">
                                        <td>
                                            IP地址或者服务器名：<asp:TextBox ID="txtServerName" Text="127.0.0.1" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="IP地址或者服务器名不能为空"
                                                ControlToValidate="txtServerName" Display="Dynamic" ForeColor="Black"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:RadioButtonList ID="rblConnectToDb" runat="server" OnSelectedIndexChanged="rblConnectToDb_SelectedIndexChanged"
                                                AutoPostBack="True">
                                                <asp:ListItem Value="Windows Authentication" Enabled="False">Windows 域身份验证</asp:ListItem>
                                                <asp:ListItem Value="SQL Server Authentication" Selected="True">SQL Server 身份验证</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr id="sqlInfo" runat="server">
                                        <td>
                                            账号：<asp:TextBox ID="txtDbUserName" runat="server"></asp:TextBox><br />
                                            密码：<asp:TextBox ID="txtDbPassword" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="SelectDb" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr style="height: 68px;">
                                        <td class="f-grayBig">
                                            <%= GetProductName()%>
                                            选择数据库实例</td>
                                    </tr>
                                    <tr style="height: 80px;">
                                        <td>
                                            <asp:RadioButtonList ID="rblSelectDb" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblSelectDb_SelectedIndexChanged">
                                                <asp:ListItem Text="新建数据库"></asp:ListItem>
                                                <asp:ListItem Text="选择已有的数据库" Selected="True"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr id="dbNew" runat="server" visible="false">
                                        <td>
                                            <span>新建数据库：</span><asp:TextBox ID="txtDbName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr id="dbOld" runat="server" visible="true">
                                        <td>
                                            <span>选择已有数据库：</span>
                                            <asp:DropDownList ID="ddlDataBaseList" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="AdminOptions" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr>
                                        <td class="f-grayBig" colspan="2">
                                            <%= GetProductName()%>
                                            设置管理员帐号</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            管理员用户名：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtAdminName" runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="管理员用户名不能为空！"
                                                ControlToValidate="txtAdminName" Display="Dynamic" ForeColor="Black" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            管理员密码：</td>
                                        <td>
                                            <asp:TextBox ID="txtAdminPwd" runat="server" TextMode="Password"></asp:TextBox></td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="管理员密码不能为空！"
                                                ControlToValidate="txtAdminPwd" Display="Dynamic" ForeColor="Black" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            确认密码：</td>
                                        <td>
                                            <asp:TextBox ID="txtAdminPwdRe" runat="server" TextMode="Password"></asp:TextBox></td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="确认密码不能为空！"
                                                ControlToValidate="txtAdminPwdRe" Display="Dynamic" ForeColor="Black"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="管理员密码两次输入不一致！"
                                                ControlToCompare="txtAdminPwd" ControlToValidate="txtAdminPwdRe" Display="Dynamic"
                                                ForeColor="Black" SetFocusOnError="True"></asp:CompareValidator></td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="Done" runat="server" Visible="false">
                                <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                    <tr>
                                        <td class="f-grayBig">
                                            <%= GetProductName()%>
                                            最后一步</td>
                                    </tr>
                                    <tr>
                                        <td id="DoneSuccess" runat="server" visible="false">
                                            <asp:Label ID="lbDoneSuccess" runat="server"></asp:Label>
                                            <asp:HyperLink ID="hyLinkSystem" runat="server" NavigateUrl="~/Whir_System/Login.aspx">点击进入后台</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <asp:Panel ID="SchemaExists" runat="server" Visible="false">
                                SchemaExists
                            </asp:Panel>
                            <asp:Panel ID="Errors" runat="server" Visible="false">
                                Errors
                            </asp:Panel>
                            <table width="92%" border="0" align="center" cellpadding="5" cellspacing="0" class="f-gray44">
                                <tr>
                                    <td>
                                        <asp:Literal ID="ltMessage" runat="server" Visible="false"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                            <div align="right">
                                <asp:ImageButton ID="Previous" runat="server" ImageUrl="images/btn_up.jpg" CausesValidation="false"
                                    OnClick="Previous_Click" />
                                <asp:ImageButton ID="Next" runat="server" ImageUrl="images/btn_down.jpg" OnClick="Next_Click" />
                                <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images/btn_star.jpg" OnClick="btnSubmit_Click"
                                    Visible="false" />
                                <asp:HiddenField ID="hdPassword" runat="server" />
                            </div>
                        </div>
                    </td>
                    <td width="5" valign="top">
                        <img src="images/bg_tb4.gif" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
